DSA
Request DSA code execution [single]
Request a single DSA code execution. Please note that if you are running SQLite, you must pass additionalFilesAsZip
as a ZIP file that must contain db.sqlite
file (exact name) when unzipped.
Authentication with the “FERMION-API-KEY” header is required to use this endpoint.
Rate limit: Maximum 5000 requests in a window of 1m.
POST
/
public
/
request-dsa-code-execution
curl --request POST \
--url https://backend.codedamn.com/api/public/request-dsa-code-execution \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '{
"data": [
{
"data": {
"language": "C",
"runConfig": {
"customMatcherToUseForExpectedOutput": "ExactMatch",
"expectedOutputAsBase64UrlEncoded": "<string>",
"stdinStringAsBase64UrlEncoded": "<string>",
"callbackUrlOnExecutionCompletion": "<string>",
"shouldEnablePerProcessAndThreadCpuTimeLimit": false,
"shouldEnablePerProcessAndThreadMemoryLimit": false,
"shouldAllowInternetAccess": false,
"compilerFlagString": "",
"maxFileSizeInKilobytesFilesCreatedOrModified": 1024,
"stackSizeLimitInKilobytes": 65536,
"cpuTimeLimitInMilliseconds": 2000,
"wallTimeLimitInMilliseconds": 5000,
"memoryLimitInKilobyte": 131072,
"maxProcessesAndOrThreads": 60
},
"sourceCodeAsBase64UrlEncoded": "<string>",
"additionalFilesAsZip": {
"type": "base64url-encoding",
"base64UrlEncodedZip": "<string>"
}
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"taskId": "<string>"
}
}
}
]
Authorizations
Body
application/json
API Request Body
The body is of type object
.
Response
200 - application/json
API Response Body
The response is of type object[]
.
curl --request POST \
--url https://backend.codedamn.com/api/public/request-dsa-code-execution \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '{
"data": [
{
"data": {
"language": "C",
"runConfig": {
"customMatcherToUseForExpectedOutput": "ExactMatch",
"expectedOutputAsBase64UrlEncoded": "<string>",
"stdinStringAsBase64UrlEncoded": "<string>",
"callbackUrlOnExecutionCompletion": "<string>",
"shouldEnablePerProcessAndThreadCpuTimeLimit": false,
"shouldEnablePerProcessAndThreadMemoryLimit": false,
"shouldAllowInternetAccess": false,
"compilerFlagString": "",
"maxFileSizeInKilobytesFilesCreatedOrModified": 1024,
"stackSizeLimitInKilobytes": 65536,
"cpuTimeLimitInMilliseconds": 2000,
"wallTimeLimitInMilliseconds": 5000,
"memoryLimitInKilobyte": 131072,
"maxProcessesAndOrThreads": 60
},
"sourceCodeAsBase64UrlEncoded": "<string>",
"additionalFilesAsZip": {
"type": "base64url-encoding",
"base64UrlEncodedZip": "<string>"
}
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"taskId": "<string>"
}
}
}
]
Assistant
Responses are generated using AI and may contain mistakes.